import { h } from 'vue';
import { NAvatar } from 'naive-ui';
export const columns = [
  {
    title: '房间ID',
    key: 'id',
    width: 20,
  },
  {
    title: '名称',
    key: 'name',
    width: 30,
  },
  {
    title: '图标',
    key: 'icon',
    width: 20,
    render(row) {
      return h(NAvatar, {
        size: 38,
        src: row.icon,
      });
    },
  },
];
